-- GENERATED SPELL FOR [Zukk'ash Tunneler] --


function spell0_5247(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(6016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5247', 20000, 1)
end

function Sorts_5247(pUnit, Event)
local choix_sorts_5247 = math.random(0, 0)
if choix_sorts_5247 == 0 then
pUnit:RegisterEvent('spell0_5247', 1, 1)
end
end

function mob5247_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5247', math.random(1500, 3000), 1)
end

function mob5247_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5247_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5247_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5247, 1, 'mob5247_Action')
RegisterUnitEvent(5247, 2, 'mob5247_Leave')
RegisterUnitEvent(5247, 3, 'mob5247_Kill')
RegisterUnitEvent(5247, 4, 'mob5247_Die')
